package lab02.test09;

public class Student {

    String studentno;      //学号
    String classno;        //班号
    String name;
    String sex;
    int age;

    public String getStudentno() {
        return studentno;
    }

    public String getClassno() {
        return classno;
    }

    public String getName() {
        return name;
    }

    public String getSex() {
        return sex;
    }

    public int getAge() {
        return age;
    }

    @Override
    public String toString() {
        return "学号：" + studentno + "\n" + "班号：" + classno + "\n" + "姓名：" + name + "\n"
                + "性别：" + sex + "\n" + "年龄：" + age;
    }

    Student() {}

}
